

class Tag {

	String name;
	def fileName;
	def filePath;
	def webPath;
	def filePrefix;
	List blogList=[];
	int useCount=0;
	String lastmod="2007-10-01";
	
	public setLastmod(String date)
	{
		if(date>lastmod)
		{ 
			lastmod=date ;
		}
	}
	
	public getFileName()
	{
		getFilePrefix()+".html";
	}
	public String getFilePrefix()
	{
		Math.abs(name.hashCode());
	}
	
	public getFilePath()
	
	{
		Config.folderMap["tags"]+Config.separator;
	}
	
	public getWebPath()
	{
		'/'+Config.folderMap["tags"]+'/'+getFileName();
	}
	
  static void main(args) {
    
  }

}